import Layout from "@/layout";

const hrPermission = [
  {
    path: "/home",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Home",
        component: () => import("@/views/hr/Home.vue"),
        meta: { title: "Dashboard", icon: "dashboard" }
      }
    ]
  },
  {
    path: "/employee",
    component: Layout,
    name: "Employee",
    meta: { title: "员工管理", icon: "peoples" },
    children: [
      {
        path: "/entry",
        name: "Entry",
        component: () => import("@/views/hr/EntryMaster.vue"),
        meta: { title: "员工入职", icon: "peoples" }
      },
      {
        path: "/resign",
        name: "Resign",
        component: () => import("@/views/hr/ResignMaster.vue"),
        meta: { title: "员工离职", icon: "peoples" }
      }
    ]
  },
  {
    path: "/evaluation",
    name: "Evaluation",
    component: Layout,
    children: [
      {
        path: "/index",
        component: () => import("@/views/hr/Evaluation.vue"),
        meta: { title: "评价管理", icon: "peoples" }
      }
    ]
  },
  {
    path: "/file",
    component: Layout,
    name: "File",
    meta: { title: "档案管理", icon: "peoples" },
    children: [
      {
        path: "/create",
        name: "Create",
        component: () => import("@/views/hr/NewFile.vue"),
        meta: { title: "新建员工档案", icon: "peoples" }
      },
      {
        path: "/query",
        name: "Query",
        component: () => import("@/views/hr/FileQuery.vue"),
        meta: { title: "查询员工档案", icon: "peoples" }
      },
      {
        path: "/fileInCompany",
        name: "fileInCompany",
        component: () => import("@/views/employee/FileInCompany.vue"  )
      }
    ]
  }
];

export default hrPermission;
